import request from '@/utils/request'

// 查询待同步数据列表
export function listCopytokd(query) {
  return request({
    url: '/copy/copytokd/list',
    method: 'get',
    params: query
  })
}

// 查询待同步数据详细
export function getCopytokd(id) {
  return request({
    url: '/copy/copytokd/' + id,
    method: 'get'
  })
}

// 新增待同步数据
export function addCopytokd(data) {
  return request({
    url: '/copy/copytokd',
    method: 'post',
    data: data
  })
}

// 修改待同步数据
export function updateCopytokd(data) {
  return request({
    url: '/copy/copytokd',
    method: 'put',
    data: data
  })
}

// 删除待同步数据
export function delCopytokd(id) {
  return request({
    url: '/copy/copytokd/' + id,
    method: 'delete'
  })
}

// 导出待同步数据
export function exportCopytokd(query) {
  return request({
    url: '/copy/copytokd/export',
    method: 'get',
    params: query
  })
}

// 查询待同步数据详细
export function getCopytokditem(query) {
  return request({
    url: '/copy/copytokditem/list',
    method: 'get',
    params: query
  })
}

// 修改
export function editCopytokd(query) {
  return request({
    url: '/copy/copytokd/update',
    method: 'get',
    params: query
  })
}
